﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt.redshift
{
	// Token: 0x0200010E RID: 270
	public class TRedshiftDeallocate : TCustomSqlStatement
	{
		// Token: 0x1700018F RID: 399
		// (get) Token: 0x060008DA RID: 2266 RVA: 0x00302969 File Offset: 0x00300B69
		// (set) Token: 0x060008DB RID: 2267 RVA: 0x00302971 File Offset: 0x00300B71
		public virtual TObjectName PlanName
		{
			get
			{
				return this.planName;
			}
			set
			{
				this.planName = value;
			}
		}

		// Token: 0x060008DC RID: 2268 RVA: 0x0030297A File Offset: 0x00300B7A
		public TRedshiftDeallocate(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstredshiftDeallocate;
		}

		// Token: 0x060008DD RID: 2269 RVA: 0x00302990 File Offset: 0x00300B90
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			TDummy tdummy = (TDummy)this.rootNode;
			this.planName = (TObjectName)tdummy.node1;
			return 0;
		}

		// Token: 0x060008DE RID: 2270 RVA: 0x003029CD File Offset: 0x00300BCD
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x060008DF RID: 2271 RVA: 0x003029DD File Offset: 0x00300BDD
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x0400122F RID: 4655
		private TObjectName planName;
	}
}
